/*
 * Copyright (c) 2023 Huawei Technologies Co., Ltd.
 * openUBMC is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *         http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
 */

#ifndef GEN_PCIe_CARD_INTERFACE_H
#define GEN_PCIe_CARD_INTERFACE_H

#include <device_tree/base.h>

namespace dev::gen {

class MC_API PCIeCard : public mc::engine::interface<PCIeCard> {
public:
    MC_INTERFACE("bmc.dev.PCIeCard")

    property<std::string> Name;            ///< PCIE标卡产品名称
    property<std::string> Model;           ///< PCIE标卡产品型号
    property<std::string> Manufacturer;    ///< 厂商
    property<std::string> PartNumber;      ///< 部件编码
    property<std::string> Description;     ///< 描述
    property<std::string> PcbVersion;      ///< PCB版本
    property<std::string> SerialNumber;    ///< 序列号
    property<std::string> FirmwareVersion; ///< PCIE标卡的固件版本号
    property<bool>        SpecialPcieCard; ///< 特殊PCIE卡标志
    property<uint16_t>    BoardId;         ///< 单板Id
    property<std::string> BoardName;       ///< 单板名称
    property<uint8_t>     Health;          ///< 健康状态
    property<uint8_t>     PcbId;           ///< PCB Id
};
} // namespace dev::gen

#endif // GEN_PCIe_CARD_INTERFACE_H